package com.huoyun.announcement.service;

import java.util.List;

import com.huoyun.announcement.bean.Announcement;
import com.huoyun.announcement.service.evt.GetOpenedAnnouncementPageEvt;
import com.huoyun.announcement.service.evt.QueryAnnoucemnetPageEvt;
import com.huoyun.base.bean.Page;

public interface AnnouncementService {

	public void saveAnnoucement(Announcement announcement);
	
	public void update(Announcement announcement);
	
	public List<Announcement> queryAnnoucement(String groupName);
	
	public Page queryAnnoucemnetPage(QueryAnnoucemnetPageEvt queryAnnoucemnetPageEvt);
	
	public Page getOpenedAnnouncementPage(GetOpenedAnnouncementPageEvt getOpenedAnnouncementPageEvt);
	
	public List<Announcement> queryAll();
	
	public Announcement getAnnouncementById(long annId);
	
	public void delete(long id);
}
